export default [
  {
    type: 'input',
    name: 'name',
    label: '活动名称',
    options: {}
  },
  {
    type: 'select',
    name: 'region',
    label: '活动区域',
    options: {}
  },
  {
    type: 'cascader',
    name: 'cascader',
    label: '级联选择',
    options: {}
  },
  {
    type: 'date',
    name: 'date1',
    label: '活动日期',
    options: {}
  },
  {
    type: 'time',
    name: 'date2',
    label: '活动时间',
    options: {}
  },
  {
    type: 'datetime',
    name: 'date3',
    label: '日期时间',
    options: {}
  },
  {
    type: 'number',
    name: 'days',
    label: '持续天数',
    options: {}
  },
  {
    type: 'switch',
    name: 'delivery',
    label: '即时配送',
    options: {
      slot: 'scope.row.delivery.toString()'
    }
  },
  {
    type: 'checkbox',
    name: 'type',
    label: '活动性质',
    dataSource: [
      { label: '美食/餐厅线上活动', value: '1' },
      { label: '地推活动', value: '2' },
      { label: '线下主题活动', value: '3' },
      { label: '单纯品牌曝光', value: '4' }
    ]
  },
  {
    type: 'radio',
    name: 'resource',
    label: '特殊资源',
    dataSource: [
      { label: '线上品牌商赞助', value: '1' },
      { label: '线下场地免费', value: '2' }
    ],
    options: {}
  },
  {
    type: 'textarea',
    name: 'desc',
    label: '活动形式',
    hide: true,
    options: {}
  }
]
